import { GLoadedButton } from "../../../../com/mui/controls/GLoadedButton";
import { EffectManager } from "../../manager/EffectManager";
type int = number;
//class PetIslandMapItemButton
    
    export  class PetIslandMapItemButton extends GLoadedButton
    {
        constructor(arg1: int, arg2: int)
        {
            super();
            this.addEventListeners();
            return;
        }

        /* internal  */addEventListeners(): void
        {
            this.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.onMouseOverHandler);
            this.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.onMouseOutHandler);
            return;
        }

        /* internal  */onMouseOverHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            this.x = this.x + 2;
            this.y = this.y + 2;
            EffectManager.glowFilterReg(this);
            return;
        }

        /* internal  */onMouseOutHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            this.x = this.x - 2;
            this.y = this.y - 2;
            EffectManager.glowFilterUnReg(this);
            return;
        }
    }
